package top.chengdongqing.mishop.product.dto

data class ProductSearchDTO(
    val categoryId: Int?,
    val brandId: Int?,
    val keyword: String?,
    val sortBy: SearchSortBy?,
    val onlyAvailable: Boolean?,
)

enum class SearchSortBy(val description: String) {
    NEWEST("最新"),
    SALES("销量"),
    PRICE_ASC("价格从低到高"),
    PRICE_DESC("价格从高到低")
}